package Computer;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.poweron();
        computer.usbDevice(new Mouse());    //向上转型
        computer.usbDevice(new Keyboard());
        computer.poweroff();
    }
}
